package com.common.repository.departmentjob;

import com.common.entity.department.DepartmentEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author johnny
 * @create 2021-05-14 9:05 下午
 **/
public interface DepartmentRepository extends JpaRepository<DepartmentEntity,Long> {

    Long countByDepartmentName(String departmentName);


    List<DepartmentEntity> findByIdNotIn(List<Long> ids);



}